package extra

import (
	"codeup.aliyun.com/lsxd/zltx/adapter/sdk/adapter/shared/dto"
)

// GetOrderExtra 获取订单扩展信息
func GetOrderExtra(in dto.Recharge) (Extra, error) {
	var tradeExtraMap map[string]interface{}
	err := in.Trade.ToJson(&tradeExtraMap)
	if err != nil {
		return nil, err
	}
	return tradeExtraMap, err
}
